package com.itheima.jdk8date;

import java.time.LocalDateTime;

public class Demo05 {
    public static void main(String[] args) {

        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.plusYears(10));
        System.out.println(now.plusYears(-10));
        System.out.println(now.plusMonths(10));
        System.out.println(now.plusDays(50));
        System.out.println(now.plusHours(3));
        System.out.println(now.plusMinutes(50));
        System.out.println(now.plusSeconds(10));
        System.out.println(now.plusWeeks(1));

    }
}
